-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improving error messages on missing tokens #862
Conversation
The changes made in the The changes look good and provide better error information without affecting the functionality. LGTM π
|
else if (provider === MODEL_PROVIDER_AZURE_SERVERLESS_MODELS) | ||
throw new Error("Azure AI Models not configured") | ||
throw new Error(`Azure AI Models not configured for ${modelId}`) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The condition if (!tok)
is checked twice in succession without any code in between that could modify tok
. This makes the second check redundant and potentially indicates a logical error in the code flow. Please review the logic to ensure it behaves as intended.
generated by pr-review-commit
unreachable_code
modelId
in the message.modelId
into the messages for clarity.